<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: Pixel Filtering</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__cudaFilter.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Pixel Filtering<div class="ingroups"><a class="el" href="group__util.html">Utilities Library (jetson-utils)</a> &raquo; <a class="el" href="group__cuda.html">CUDA</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>CUDA device functions for sampling pixels with bilinear filtering.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga25d4283643163befe99948d24cc53311"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a> { <a class="el" href="group__cudaFilter.html#gga25d4283643163befe99948d24cc53311a8928ed98915affb5c7514632a038daa6">FILTER_POINT</a>, 
<a class="el" href="group__cudaFilter.html#gga25d4283643163befe99948d24cc53311ad8e5de74ec16a7e07145b7c18c885094">FILTER_LINEAR</a>
 }</td></tr>
<tr class="memdesc:ga25d4283643163befe99948d24cc53311"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of interpolation filtering modes.  <a href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">More...</a><br /></td></tr>
<tr class="separator:ga25d4283643163befe99948d24cc53311"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga66fe4a27e9fb59cd675d5deb12287195"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cudaFilter.html#ga66fe4a27e9fb59cd675d5deb12287195">cudaDataFormat</a> { <a class="el" href="group__cudaFilter.html#gga66fe4a27e9fb59cd675d5deb12287195a4130db7b40bd34c9b4e91df46d37fc6a">FORMAT_HWC</a>, 
<a class="el" href="group__cudaFilter.html#gga66fe4a27e9fb59cd675d5deb12287195a4ccf6f5b6af6f76d13ef2aefd17ea51a">FORMAT_CHW</a>, 
<a class="el" href="group__cudaFilter.html#gga66fe4a27e9fb59cd675d5deb12287195aa172a0e14adcf61d8fdc4df73a29dece">FORMAT_DEFAULT</a> = FORMAT_HWC
 }</td></tr>
<tr class="memdesc:ga66fe4a27e9fb59cd675d5deb12287195"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of image layout formats.  <a href="group__cudaFilter.html#ga66fe4a27e9fb59cd675d5deb12287195">More...</a><br /></td></tr>
<tr class="separator:ga66fe4a27e9fb59cd675d5deb12287195"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga6a34c93022b23a55a5ae440a8ff7a247"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cudaFilter.html#ga6a34c93022b23a55a5ae440a8ff7a247">cudaFilterModeFromStr</a> (const char *filter, <a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a> default_value=<a class="el" href="group__cudaFilter.html#gga25d4283643163befe99948d24cc53311ad8e5de74ec16a7e07145b7c18c885094">FILTER_LINEAR</a>)</td></tr>
<tr class="memdesc:ga6a34c93022b23a55a5ae440a8ff7a247"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse a cudaFilterMode enum from a string.  <a href="group__cudaFilter.html#ga6a34c93022b23a55a5ae440a8ff7a247">More...</a><br /></td></tr>
<tr class="separator:ga6a34c93022b23a55a5ae440a8ff7a247"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0051762a62125939ddbd5c38417f3ff"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__cudaFilter.html#gaf0051762a62125939ddbd5c38417f3ff">cudaFilterModeToStr</a> (<a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a> filter)</td></tr>
<tr class="memdesc:gaf0051762a62125939ddbd5c38417f3ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a cudaFilterMode enum to a string.  <a href="group__cudaFilter.html#gaf0051762a62125939ddbd5c38417f3ff">More...</a><br /></td></tr>
<tr class="separator:gaf0051762a62125939ddbd5c38417f3ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>CUDA device functions for sampling pixels with bilinear filtering. </p>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga66fe4a27e9fb59cd675d5deb12287195"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga66fe4a27e9fb59cd675d5deb12287195">&#9670;&nbsp;</a></span>cudaDataFormat</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__cudaFilter.html#ga66fe4a27e9fb59cd675d5deb12287195">cudaDataFormat</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of image layout formats. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga66fe4a27e9fb59cd675d5deb12287195a4130db7b40bd34c9b4e91df46d37fc6a"></a>FORMAT_HWC&#160;</td><td class="fielddoc"><p>Height * Width * Channels (packed format) </p>
</td></tr>
<tr><td class="fieldname"><a id="gga66fe4a27e9fb59cd675d5deb12287195a4ccf6f5b6af6f76d13ef2aefd17ea51a"></a>FORMAT_CHW&#160;</td><td class="fielddoc"><p>Channels * Width * Height (DNN format) </p>
<p>Default format (HWC) </p>
</td></tr>
<tr><td class="fieldname"><a id="gga66fe4a27e9fb59cd675d5deb12287195aa172a0e14adcf61d8fdc4df73a29dece"></a>FORMAT_DEFAULT&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<a id="ga25d4283643163befe99948d24cc53311"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga25d4283643163befe99948d24cc53311">&#9670;&nbsp;</a></span>cudaFilterMode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of interpolation filtering modes. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__cudaFilter.html#ga6a34c93022b23a55a5ae440a8ff7a247" title="Parse a cudaFilterMode enum from a string.">cudaFilterModeFromStr()</a> and <a class="el" href="group__cudaFilter.html#gaf0051762a62125939ddbd5c38417f3ff" title="Convert a cudaFilterMode enum to a string.">cudaFilterModeToStr()</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga25d4283643163befe99948d24cc53311a8928ed98915affb5c7514632a038daa6"></a>FILTER_POINT&#160;</td><td class="fielddoc"><p>Nearest-neighbor sampling. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga25d4283643163befe99948d24cc53311ad8e5de74ec16a7e07145b7c18c885094"></a>FILTER_LINEAR&#160;</td><td class="fielddoc"><p>Bilinear filtering. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga6a34c93022b23a55a5ae440a8ff7a247"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6a34c93022b23a55a5ae440a8ff7a247">&#9670;&nbsp;</a></span>cudaFilterModeFromStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a> cudaFilterModeFromStr </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a>&#160;</td>
          <td class="paramname"><em>default_value</em> = <code><a class="el" href="group__cudaFilter.html#gga25d4283643163befe99948d24cc53311ad8e5de74ec16a7e07145b7c18c885094">FILTER_LINEAR</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Parse a cudaFilterMode enum from a string. </p>
<dl class="section return"><dt>Returns</dt><dd>The parsed cudaFilterMode, or default_value on error. </dd></dl>

</div>
</div>
<a id="gaf0051762a62125939ddbd5c38417f3ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf0051762a62125939ddbd5c38417f3ff">&#9670;&nbsp;</a></span>cudaFilterModeToStr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* cudaFilterModeToStr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__cudaFilter.html#ga25d4283643163befe99948d24cc53311">cudaFilterMode</a>&#160;</td>
          <td class="paramname"><em>filter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert a cudaFilterMode enum to a string. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
